package com.prs.crm.domain.official;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import com.prs.crm.domain.BaseEntity;
/***
 * 
 * @author Yanghao
 *	2012-8-29 14:49:56 部门邮件
 */
@Entity
@Table(name="official_deptmaildel")
public class DeptMailDel extends BaseEntity{

	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	private Integer id;
	@OneToOne 
	private DeptMail deptMail;
	@OneToOne
	private DeptMailReceive deptMailReceive;
	public DeptMail getDeptMail() {
		return deptMail;
	}
	public void setDeptMail(DeptMail deptMail) {
		this.deptMail = deptMail;
	}
	public DeptMailReceive getDeptMailReceive() {
		return deptMailReceive;
	}
	public void setDeptMailReceive(DeptMailReceive deptMailReceive) {
		this.deptMailReceive = deptMailReceive;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
}
